Skip to content

Conversation

AlexHerting
Copy link

No description provided.

@jmini
Copy link
Collaborator

jmini commented Apr 23, 2024

This requires more tests.

I did not find the endpoint in the documentation, but I found a test case here:
https://gitlab.com/gitlab-org/gitlab/-/blob/87385d7e0203c37dc97d4f9845cfe9860c33d2f3/spec/requests/api/branches_spec.rb#L629

Which is using PUT and not DELETE

@jmini
Copy link
Collaborator

jmini commented Apr 23, 2024

The documentation says:

https://docs.gitlab.com/ee/api/protected_branches.html#unprotect-repository-branches

DELETE /projects/:id/protected_branches/:name

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants